<template>
    <div class="tj">
        <div class="clearfix"><h6 class="floatL">推荐公司</h6><a class="floatR">展开</a></div>
        <p><a v-for="item in jobdetail.companies">{{item.name}}</a></p>
    </div>
</template>

<script>
export default {
    data() {
        return {
            jobdetail:{},
            id:this.$route.params.id
        }
    },
    created() {
        this.getJobInfo()
    },
    methods: {
        getJobInfo(){
            this.$http.get('http://127.0.0.1:3000/api/jobInfo/'+this.id+'.json').then(result => {
                this.jobdetail=result.body
            })
        }
	},
}
</script>

<style lang="scss" scoped>
/*tj*/
.tj {padding: 15px;}
.tj h6,.tj a {font-size: 13px; line-height: 20px;}
.tj p {padding: 10px 0;}
.tj p a {font-size: 12px; padding-right:15px; line-height: 24px;padding-top: 10px; display: inline-block;}
</style>